package com.cdie.myschool.controller;

import com.cdie.myschool.common.R;
import com.cdie.myschool.domain.dto.ScoreDTO;
import com.cdie.myschool.service.StudentScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("StudentScore")
public class StudentScoreController {

    @Autowired
    private StudentScoreService studentScoreService;

    @GetMapping("select")
    public Integer dataImport(ScoreDTO scoreDTO){
        return studentScoreService.showScore(scoreDTO);

    }

}
